import SvgIcon, {  } from "@mui/material/SvgIcon";
// import Icon from '@mui/material/Icon';

import "./index.scss";

const Micons = (props: any) => {
  const { type, className, colorFill } = props;

  const icons = <SvgIcon {...props} inheritViewBox />;

  return (
    <>
      {type == "extend" ? (
        <svg
          className="icon svg-icon"
          aria-hidden="true"
          fill={colorFill ? colorFill : "#a7a7a7"}
        >
          <use xlinkHref={"#" + className}></use>
        </svg>
      ) : (
        icons
      )}
    </>
  );
};
export default Micons;
